package day_06;

/**
 * @ClassName BankAccount
 * @Description TODO
 * @Author hp
 * @Date 2021/6/7 20:58
 * @Version 1.0
 **/
public class BankAccount {
    private  double rate;
    private String passWord;
    private double balance;

    public BankAccount(double rate, String passWord, double balance) {
        this.rate = rate;
        this.passWord = passWord;
        this.balance = balance;
    }

    public double getRate() {
        return rate;
    }

    public void setRate(double rate) {
        this.rate = rate;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "BankAccount{" +
                "rate=" + rate +
                ", passWord='" + passWord + '\'' +
                ", balance=" + balance +
                '}';
    }
    static class Test{
        public static void main(String[] args) {
            BankAccount bankAccount = new BankAccount(0.035, "110831383", 10002);
            BankAccount bankAccount1 = new BankAccount(0.035, "1539794466", 120620);
            System.out.println(bankAccount.toString());
            System.out.println(bankAccount1.toString());
        }
    }
}
